{% extends "everything.html" %}
{% block everything %}
<head>
{% if entry %}
<title>{{ entry.title }}</title>
{% else %}
{% if tag %}
<title>Entries in Tag: {{ tag.name }}</title>
{% else %}
{% if category %}
<title>Entries in Category: {{ category.name }}</title>
{% else %}
<title>Visame's Blog</title>
{% endif%}
{% endif %}
{% endif %}

<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="expires" content="0" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="author" content="Visame" />
<meta name="generator" content="www.Visame.org" />
<meta name="copyright" content="Copyright (c) 2009 Visame. All Rights Reserved." />
<meta name="robots" content="index, follow" />
<meta name="revisit-after" content="7 days" />
<meta name="rating" content="general" />
{% if is_entrypage and entry%}
<meta name="keywords" content="{{ entry.excerpt|escape }}" />
<meta name="description" content="{{ entry.excerpt|escape }}" />
{% else %}
<meta name="keywords" content="Visame的Blog Offer雨 留学 互联网 外语 IT 生活 BBS 论坛" />
<meta name="description" content="Visame的Blog Offer雨 留学 互联网 外语 IT 生活 BBS 论坛" />
{% endif %}
<link href="/static/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/static/js/jquery.js"></script>
<script type="text/javascript" src="/static/js/common.js"></script>
<script type="text/javascript" src="/static/js/tip.js"></script>
<script type="text/javascript" src="/static/js/jquery.form.utf8.js"></script>
<script type="text/javascript" src="/static/js/syntaxhighlighter/scripts/shCore.js"></script>
<script type="text/javascript" src="/static/js/syntaxhighlighter/scripts/shBrushBash.js"></script>
<script type="text/javascript" src="/static/js/syntaxhighlighter/scripts/shBrushCpp.js"></script>
<script type="text/javascript" src="/static/js/syntaxhighlighter/scripts/shBrushCSharp.js"></script>
<script type="text/javascript" src="/static/js/syntaxhighlighter/scripts/shBrushCss.js"></script>
<script type="text/javascript" src="/static/js/syntaxhighlighter/scripts/shBrushDelphi.js"></script>
<script type="text/javascript" src="/static/js/syntaxhighlighter/scripts/shBrushDiff.js"></script>
<script type="text/javascript" src="/static/js/syntaxhighlighter/scripts/shBrushGroovy.js"></script>
<script type="text/javascript" src="/static/js/syntaxhighlighter/scripts/shBrushJava.js"></script>
<script type="text/javascript" src="/static/js/syntaxhighlighter/scripts/shBrushJScript.js"></script>
<script type="text/javascript" src="/static/js/syntaxhighlighter/scripts/shBrushPhp.js"></script>
<script type="text/javascript" src="/static/js/syntaxhighlighter/scripts/shBrushPlain.js"></script>
<script type="text/javascript" src="/static/js/syntaxhighlighter/scripts/shBrushPython.js"></script>
<script type="text/javascript" src="/static/js/syntaxhighlighter/scripts/shBrushRuby.js"></script>
<script type="text/javascript" src="/static/js/syntaxhighlighter/scripts/shBrushScala.js"></script>
<script type="text/javascript" src="/static/js/syntaxhighlighter/scripts/shBrushSql.js"></script>
<script type="text/javascript" src="/static/js/syntaxhighlighter/scripts/shBrushVb.js"></script>
<script type="text/javascript" src="/static/js/syntaxhighlighter/scripts/shBrushXml.js"></script>
<link type="text/css" rel="stylesheet" href="/static/js/syntaxhighlighter/styles/shCore.css"/>
<link type="text/css" rel="stylesheet" href="/static/js/syntaxhighlighter/styles/shThemeDefault.css"/>
<script type="text/javascript">
    SyntaxHighlighter.config.clipboardSwf = '/static/js/syntaxhighlighter/scripts/clipboard.swf';
    SyntaxHighlighter.all();
</script>

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
</head>
<!--BODY-->
<body>
<div class="navigation">
	<ul class="nav_top">
    	<a href="http://jlpzj.com/" id="logo" title="Documentary Fans"></a>
		<span id="logo_ad"><center>
		<!-- dex AdMarketplace Tag : dexplatform.com  -  (458) 468 x 60 Banner -->
<IFRAME ALLOWTRANSPARENCY=FALSE FRAMEBORDER=0 HSPACE=0 VSPACE=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=468 HEIGHT=60 SRC=http://marketplace.dexplatform.com/marketplace/delivery/display.php?f=468x60&w=468&h=60&o=458&s=659></IFRAME>
<!-- End of ad tag : dex AdMarketplace --></center></span>
  		<li class="nav_info">
			<span id="logind" class="nav_login">
			{% if is_admin %}
<a href="/Visame/publish/" title="Publish A New Entry"><strong>Publish A New Entry</strong></a>
<a href="{{ logout_url }}">Logout</a>
			{% else %}
    				<a href="javascript:addBookmark('Visame's Blog','http://visameblog.appspot.com/')" title="Add to Favourites">Add to Favourites</a>
<script type="text/javascript">
function addBookmark(title,url) {
if (window.sidebar) {
window.sidebar.addPanel(title,url,"");
} else if( document.all ) {
window.external.AddFavorite(url, title);
} else if( window.opera && window.print ) {
return true;
}
}
</script>
		{% endif %}			
			</span>


    <span class="nav_search">
      <!-- for common page -->
<form name="f1" action="/search/" class="nav_searchform" target="_blank" method="post">
<input name="word" class="nav_searchInput" value="Google Search" onfocus="if (value =='Google Search'){value =''}" onblur="if (value ==''){value='Google Search'}" />
<input type="submit" value="" class="postBtn" />
<input name="s" type="radio" style="display:none;" /><input name="s" type="radio" style="display:none;" checked="checked" /></form>
    </span>
  </li>
</ul>
<!-- end nav_topsite -->
<div class="nav">
	<div class="nav_primary">

		<ul>
<li><a href="/">Home</a></li>
{% for allcat in allcats %}
<li><a href="/cat/{{ allcat.id }}/1/">{{ allcat.name }}</a></li>
{% endfor %}
		</ul>

	</div>
</div>
<!-- end nav-->
</div>
<!-- end navigation -->


<!-- 工具栏 -->
<div id="counttool">
	<p id="countinfo"><span>Visame has published<span> {{ total }} </span>articles</p>
	{% if is_admin %}
	<p id="tool">
    <a href="/" title="You are ADMIN Now"><font color="red">You are ADMIN Now</font></a></p>
	{% else %}
	<p id="tool">
    Please <a href="/" title="Donate"><font color="red">Donate</font></a> to this site</p>
	{% endif %}
</div>

<div id="container">
<!-- 左内容-->
<div id="pbleft">
{% if is_entrypage %}
{% block LeftContent %} {% endblock %}
{% else %}
{% block Before_Newslist %} {% endblock %}
<!-- 文章列表 -->
				<!-- pbdigg -->
{% for entry in entries %}
		<div class="newslist" onmouseover="this.style.background='url(/static/images/bg_newslist2.png) repeat-y left -10px'" onmouseout="this.style.background='url(/static/images/bg_newslist.png) repeat-y left -10px'">
			<dl><dt class="topic"><a href="/entry/{{ entry.id }}/"   target="_blank">{{ entry.title }}</a><p class="author"><a href="http://visameblog.appspot.com">Visame</a>&nbsp;published on <span class="d">{{ entry.pub_date_str }}</span> in ［<a href="/cat/{{ entry.category.id }}/1/">{{ entry.category.name }}</a>］</p></dt>

			</dl>
            
            <dl>
							<dd class="desc">

				 <a href="/cat/{{ entry.category.id }}/1/"  class="topicimg_a"><img src="/static/images/{{ entry.category.imgname|escape }}.png" alt="{{ entry.category.name }}" style="" class="topicimg" /></a>
				 {{ entry.excerpt }}
				<span class="ddmove"> (<a href="/entry/{{ entry.id }}/"  target="_blank">详细内容</a>>>>)</span>

				</dd>
			</dl>
			<dl>
				<dd class="detail">
				{% if is_admin %}
				<span class="share"><a href="/Visame/edit/{{ entry.id }}/" target="_blank">Edit</a></span>
				<span class="share"><a href="/Visame/predelete/{{ entry.id }}/" target="_blank">Delete</a></span>
				{% endif %}
				<span class="pinglun">{{ entry.commentscount}} Comments</span>
				<span class="hits">{{ entry.accesscount }} views</span>
				<span class="tagico">Tags :
				{% for tag in entry.tags %}
				<a href="/tag/{{ tag.id }}/1/">{{ tag.name|escape }}</a>
				{% endfor %}
				</span>
				</dd>
			</dl>
		</div>
{% endfor %}
		    <div class="clear5">&nbsp;</div>
	<!-- 分页链接 -->
		<div class="pages">
		<div class="nextprev">
		{% if haspre %}
		<a href="{{ prenav }}/{{ prepage }}/"  class="nextprev">Previous</a>
		{% else %}
		<span class="nextprev">Previous</span>
		{% endif %}
		{% for page in pages %}
		{% ifequal page currentpage %}
		<span class="current">{{ currentpage }}</span>
		{% else %}
		<a href="{{ prenav }}/{{ page }}/">{{ page }}</a>
		{% endifequal %}
		{% endfor %}
		{% if dotdotdot %}
		<span>&#8230;</span>
		{% endif %}
		{% if hasnext or haspre %}
		{% ifequal lastpage currentpage %}
		<span class="current">{{ currentpage }}</span>
		{% else %}
		<a href="{{ prenav }}/{{ lastpage }}/">{{ lastpage }}</a>
		{% endifequal %}
		{% endif %}
		{% if hasnext %}
		<a href="{{ prenav }}/{{ nextpage }}/"  class="nextprev">Next</a>
		{% else %}
		<span class="nextprev">Next</span>
		{% endif %}
		</div>
		</div>
{% block After_Newslist %} {% endblock %}
{% endif %}
</div>
	
<!-- 右侧列表 -->
<div id="sidebar">
<H2><span class="leftborder"></span><span class="midBlock">Welcome to Visame's Blog!</span><span class="rightborder"></span></H2>
<h2><span class="leftborder"></span><span class="midBlock">Sponsor</span><span class="rightborder"></span></h2>
<!-- dex AdMarketplace Tag : dexplatform.com  -  (458) 300 x 250 Medium Rectangle -->
<IFRAME ALLOWTRANSPARENCY=FALSE FRAMEBORDER=0 HSPACE=0 VSPACE=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=300 HEIGHT=250 SRC=http://marketplace.dexplatform.com/marketplace/delivery/display.php?f=300x250&w=300&h=250&o=458&s=659></IFRAME>
<!-- End of ad tag : dex AdMarketplace -->
<h2><span class="leftborder"></span><span class="midBlock">Most Popular Entries:</span><span class="rightborder"></span></h2>
<ol>
{% for popentry in pop_entries %}
<li><a href="/entry/{{ popentry.id }}/"  target="_blank" title="{{ popentry.title }} ({{ popentry.accesscount }})">{{ popentry.title }}</a><strong> ({{ popentry.accesscount }})</strong></li>
{% endfor %}
</ol>
<h2><span class="leftborder"></span><span class="midBlock">Sponsor</span><span class="rightborder"></span></h2>
<!--
<script language="javascript" type="text/javascript" src="../gg/sefabeta_y0.js"></script>
-->
{% if is_entrypage %}
<h2><span class="leftborder"></span><span class="midBlock">Related Entries:</span><span class="rightborder"></span></h2>
		<ol>
		{% for relentry in relatedentries %}
		{% ifnotequal relentry.id entry.id %}
		<li><a href="/entry/{{ relentry.id }}/"  title="{{ relentry.title }}">{{ relentry.title }}</a><strong> ({{ relentry.accesscount }})</strong></li>
		{% endifnotequal %}
		{% endfor %}
		</ol>
{% endif %}
<h2><span class="leftborder"></span><span class="midBlock">All Categories:</span><span class="rightborder"></span></h2>
<ol>
{% for allcat in allcats %}
<li><a href="/cat/{{ allcat.id }}/1/"  title="{{ allcat.name }}">{{ allcat.name }}</a><strong> ({{ allcat.entriescount }})</strong></li>
{% endfor %}
</ol>

<h2><span class="leftborder"></span><span class="midBlock">Latest Comments:</span><span class="rightborder"></span></h2>
<div class="comcom">
{% for latest_comment in latest_comments %}
<ul class="com_box"><li class="com_box_z"><img src="/static/images/user.png" class="middle_user_avatar" /></a></li><li class="com_box_y"><a href="/entry/{{ latest_comment.entry.id }}/"  title="{{ latest_comment.user_name }}" target="_blank" class="b">{{ latest_comment.user_name }}</a> 对 <a href="/entry/{{ latest_comment.entry.id }}/"  class="s">{{ latest_comment.entry.title }}</a> 的评论: <span>{{ latest_comment.content }}</span><em><a href="/entry/{{ latest_comment.entry.id }}/">[全文]</a></em></li></ul>
{% endfor %}
</div>


	<h2><span class="leftborder"></span><span class="midBlock">Links</span><span class="rightborder"></span></h2>
	<!-- end vote-->
	<div class="feed1">
	<dl>
	<center>
		<a href="http://jlpzj.com/" title="纪录片之家"target="_blank"><img style="padding:3px;" src="/static/images/sanfan_logo.gif" width="88" height="31" /></a> 
</center>
	</dl>
	</div>

	 <!-- end vote -->
</div>
<!-- 右列表结束 -->
<div class="clear"></div>
<!-- End Container -->
</div>

<!-- footer -->
<div id="copy">
<h2><span class="leftborder1"></span><span class="midBlock1">Copyright</span><span class="rightborder1"></span></h2>
<ol><div id="footer">
<p>Feel free to comment, request movies, or add links! <br/>
DISCLAIMER: We DO NOT host or upload any of the videos or any other content.</p>
	<div id="copyright">Coryright &copy;2009-2010 Visame People's Republic of China
		
	</div>

<p><a href="http://VisameBlog.appspot.com/" target="_blank"><img border="0" src="/static/images/email.png" alt="Kankaqi (AT) geemail etc" /></a></p>
<p>Beijing China Powered by <a href="http://VisameBlog.appspot.com/" target="_blank">Visame</a></p>
<p id="debug"></p>
<p>Designed by Visame. &copy;All rights reserved.</p>
	<!--统计代码-->
<div id="counter">
<!--Google Analytics-->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-11703023-2");
pageTracker._trackPageview();
} catch(err) {}
</script></div>
<!--End Google Analytics-->
</div></ol>
<!-- footer end -->
</div>

</body>
{% endblock %}